# Maintainer: David Runge <dvzrv@archlinux.org>

pkgname=jack-stdio
pkgver=1.6
pkgrel=2
pkgdesc="Unix pipe audio-data from and to JACK"
arch=(loong64 x86_64)
url="https://github.com/x42/jack-stdio"
license=(GPL2)
groups=(pro-audio)
depends=(glibc jack)
source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
sha512sums=('e5537968ef58a74c535a7cfd960e22923c20db5808803d194efe8e5de4ffe3954941cdc331626ba660f6edcff3dbab257321db78de043741dc5fe60b247d8199')
b2sums=('0650bf96edcdf085fc4ee5d9a8cceaf881ab77ddcc9a93e94351947581938ac2d68b1d233c49c8cbcaa40b37e7c7e07c6c3b1acaed9edd51644b068ee8b47cf0')

build() {
  make -C $pkgname-$pkgver
}

package() {
  make PREFIX=/usr DESTDIR="$pkgdir/" install -C $pkgname-$pkgver
  install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog} -t "$pkgdir/usr/share/doc/$pkgname/"
}
